#ifndef __DATAPROCCESS_H
#define __DATAPROCCESS_H

#include "stdio.h"	
#include "stm32f4xx_conf.h"
#include "sys.h" 

void uint32Encode(uint8_t stateByte[],uint32_t data);
uint8_t dataCheck(uint8_t data[],uint16_t datLen);
uint8_t dataCount(uint8_t data[],uint16_t datLen);
void uint32SmallToBig(uint8_t* targetInt,uint32_t* sourceShort,uint16_t len);



//float-4byte转换
union FloatTo4ByteType{      //用于float-Byte转换
    uint8_t ByteData[4];
    float floatData;
};
extern union FloatTo4ByteType FloatTo4Byte;

#endif

